package com.xbongbong.paas.constant;

import static com.xbongbong.paas.enums.ConditionEnum.CUSTOM;
import static com.xbongbong.paas.enums.ConditionEnum.EMPTY;
import static com.xbongbong.paas.enums.ConditionEnum.EQUAL;
import static com.xbongbong.paas.enums.ConditionEnum.GREATEREQUAL;
import static com.xbongbong.paas.enums.ConditionEnum.IN;
import static com.xbongbong.paas.enums.ConditionEnum.LESSEQUAL;
import static com.xbongbong.paas.enums.ConditionEnum.LIKE;
import static com.xbongbong.paas.enums.ConditionEnum.NOEMPTY;
import static com.xbongbong.paas.enums.ConditionEnum.NOEQUAL;
import static com.xbongbong.paas.enums.ConditionEnum.NOIN;
import static com.xbongbong.paas.enums.ConditionEnum.NOLIKE;
import static com.xbongbong.paas.enums.ConditionEnum.NORMAL;
import static com.xbongbong.paas.enums.ConditionEnum.RANGE;

/**
 * 用于图表
 * @author 梁鲁江
 * @version v1.0
 * @date 2019/1/23 10:11
 * @since v1.0
 */
public class ConditionForChartConstant extends ConditionConstant {
    /**
     * 时间规则：大于等于，小于等于，不为空，为空，选择范围，常用，自定义动态
     */
    public static final String[] DATETIME = {GREATEREQUAL.getSymbol(), LESSEQUAL.getSymbol(), NOEMPTY.getSymbol(), EMPTY.getSymbol(), RANGE.getSymbol(), NORMAL.getSymbol(), CUSTOM.getSymbol()};
    /**
     * 创建时间：大于等于，小于等于，选择范围，常用，自定义动态
     */
    public static final String[] ADDTIME = {GREATEREQUAL.getSymbol(), LESSEQUAL.getSymbol(),  RANGE.getSymbol(), NORMAL.getSymbol(), CUSTOM.getSymbol()};
    /**
     * 更新时间：大于等于，小于等于，选择范围，常用，自定义动态
     */
    public static final String[] UPDATETIME = {GREATEREQUAL.getSymbol(), LESSEQUAL.getSymbol(), RANGE.getSymbol(), NORMAL.getSymbol(), CUSTOM.getSymbol()};
    /**
     * 结束时间：大于等于，小于等于，不为空，为空，选择范围，常用，自定义动态
     */
    public static final String[] ENDTIME = {GREATEREQUAL.getSymbol(), LESSEQUAL.getSymbol(), NOEMPTY.getSymbol(), EMPTY.getSymbol(), RANGE.getSymbol(), NORMAL.getSymbol(), CUSTOM.getSymbol()};
    /**
     * 关闭时间：大于等于，小于等于，不为空，为空，选择范围，常用，自定义动态
     */
    public static final String[] CLOSETIME = {GREATEREQUAL.getSymbol(), LESSEQUAL.getSymbol(), NOEMPTY.getSymbol(), EMPTY.getSymbol(), RANGE.getSymbol(), NORMAL.getSymbol(), CUSTOM.getSymbol()};

    /**
     * 文本规则：等于，不等于，包含，不包含，为空，不为空；
     */
    public static final String[] TEXT = {EQUAL.getSymbol(), NOEQUAL.getSymbol(), LIKE.getSymbol(), NOLIKE.getSymbol(),EMPTY.getSymbol(), NOEMPTY.getSymbol()};
}
